﻿using System;
using System.ComponentModel.DataAnnotations;
using Util.Domains.Repositories;

namespace IterationLife.Domains.Sports.Queries {
    /// <summary>
    /// 体育比赛分组分段查询实体
    /// </summary>
    public class SportEventGroupSectionQuery : QueryEntityBase {
        /// <summary>
        /// 体育比赛分组分段编号
        /// </summary>
        [Display(Name="体育比赛分组分段编号")]
        public Guid? SportEventGroupSectionId { get; set; }
        /// <summary>
        /// 体育比赛分组Id
        /// </summary>
        [Display(Name="体育比赛分组Id")]
        public Guid? SportEventGroupId { get; set; }
        /// <summary>
        /// 起始开始时间
        /// </summary>
        [Display( Name = "起始开始时间" )]
        public DateTime? BeginStartTime { get; set; }
        /// <summary>
        /// 结束开始时间
        /// </summary>
        [Display( Name = "结束开始时间" )]
        public DateTime? EndStartTime { get; set; }        
        /// <summary>
        /// 起始结束时间
        /// </summary>
        [Display( Name = "起始结束时间" )]
        public DateTime? BeginEndTime { get; set; }
        /// <summary>
        /// 结束结束时间
        /// </summary>
        [Display( Name = "结束结束时间" )]
        public DateTime? EndEndTime { get; set; }        
        
        private string _sectionName = string.Empty;
        /// <summary>
        /// 分段名称
        /// </summary>
        [Display(Name="分段名称")]
        public string SectionName {
            get { return _sectionName == null ? string.Empty : _sectionName.Trim(); }
            set{ _sectionName=value;}
        }
        
        private string _jsonData = string.Empty;
        /// <summary>
        /// 全队分段数据
        /// </summary>
        [Display(Name="全队分段数据")]
        public string JsonData {
            get { return _jsonData == null ? string.Empty : _jsonData.Trim(); }
            set{ _jsonData=value;}
        }
        /// <summary>
        /// 起始创建时间
        /// </summary>
        [Display( Name = "起始创建时间" )]
        public DateTime? BeginCreationTime { get; set; }
        /// <summary>
        /// 结束创建时间
        /// </summary>
        [Display( Name = "结束创建时间" )]
        public DateTime? EndCreationTime { get; set; }        
        /// <summary>
        /// 创建人
        /// </summary>
        [Display(Name="创建人")]
        public Guid? CreatorId { get; set; }
        /// <summary>
        /// 起始最后修改时间
        /// </summary>
        [Display( Name = "起始最后修改时间" )]
        public DateTime? BeginLastModificationTime { get; set; }
        /// <summary>
        /// 结束最后修改时间
        /// </summary>
        [Display( Name = "结束最后修改时间" )]
        public DateTime? EndLastModificationTime { get; set; }        
        /// <summary>
        /// 最后修改人
        /// </summary>
        [Display(Name="最后修改人")]
        public Guid? LastModifierId { get; set; }
        
        /// <summary>
        /// 添加描述
        /// </summary>
        protected override void AddDescriptions() {
            base.AddDescriptions();
            AddDescription( "体育比赛分组分段编号", SportEventGroupSectionId );
            AddDescription( "体育比赛分组Id", SportEventGroupId );
            AddDescription( "起始开始时间", BeginStartTime );
            AddDescription( "结束开始时间", EndStartTime );
            AddDescription( "起始结束时间", BeginEndTime );
            AddDescription( "结束结束时间", EndEndTime );
            AddDescription( "分段名称", SectionName );
            AddDescription( "全队分段数据", JsonData );
            AddDescription( "起始创建时间", BeginCreationTime );
            AddDescription( "结束创建时间", EndCreationTime );
            AddDescription( "创建人", CreatorId );
            AddDescription( "起始最后修改时间", BeginLastModificationTime );
            AddDescription( "结束最后修改时间", EndLastModificationTime );
            AddDescription( "最后修改人", LastModifierId );
        } 
    }
}
